package com.sea.physical.service.impl;


import com.sea.physical.entity.Cabinet;
import com.sea.physical.entity.Transport;
import com.sea.physical.mapper.CabinetMapper;
import com.sea.physical.mapper.TransportMapper;
import com.sea.physical.service.CabinetService;
import com.sea.physical.service.TransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TransportServiceImpl implements TransportService {

    @Autowired
    private TransportMapper transportMapper;


    @Override
    public List<Transport> findByCnd(Transport transport) {
        return transportMapper.findByCnd(transport);
    }

    @Override
    public int delete(Integer id) {
        return transportMapper.delete(id);
    }

    @Override
    public int save(Transport transport) {
        return transportMapper.insert(transport);
    }

    @Override
    public Transport findByName(String transportName) {
        return transportMapper.findByName(transportName);
    }
}
